/************************************************************
 * Project Name         [Thinking_In_Java]
 * File Name            [ComputerBook.java]
 * Creation Date        [24-Jul-2014]
 * 
 * Copyright© ge.y.yang@gmail.com All Rights Reserved
 * 
 * Work hard, play harder, think big and keep fit
 ************************************************************/
package pkg_principles.ocp.example02;

/**
 * 
 * @author 不落的太阳(Sean Yang)
 * @version 1.0
 * @since JDK 6
 * 
 */
public class ComputerBook implements IComputerBook {

	private final String name;
	private final String category;
	private final String author;
	private final double price;

	public ComputerBook(String name, double price, String author,
			String category) {
		this.name = name;
		this.price = price;
		this.author = author;
		this.category = category;
	}

	@Override
	public String getCategory() {
		return category;
	}

	@Override
	public String getAuthor() {
		return author;
	}

	@Override
	public String getName() {
		return name;
	}

	@Override
	public double getPrice() {
		return price;
	}
}
